package modellayer;

/**
 * This class is to be extended from clerk and customer.
 * 
 * @author Stefan Bols
 * @version 140114
 *
 */

public class Person {
    private String firstName;
    private String lastName;
    private String addressStreet;
    private String addressCity;
    private String addressZipcode;
    private String phone;
    private String email;
    
    public Person(String firstName, String lastName, String addressStreet, String addressCity, String addressZipcode, String phone, String email)
    {
        this.firstName = firstName;
        this.lastName = lastName;
        this.addressStreet = addressStreet;
        this.addressCity = addressCity;
        this.addressZipcode = addressZipcode; 
        this.phone = phone;
        this.email = email;
    }

	/**
     * This is a mutator-method
     * @param String firstName
     */
    public void setFirstName(String firstName)
    {
        this.firstName = firstName;
    }
    
    /**
     * This is a mutator-method
     * @param String lastName
     */
    public void setLastName(String lastName)
    {
        this.lastName = lastName;
    }
    
    /**
     * This is a mutator-method
     * @param String addressStreet
     */
    public void setAddressStreet(String addressStreet)
    {
        this.addressStreet = addressStreet;
    }
    
    /**
     * This is a mutator-method
     * @param String addressCity
     */
    public void setAddressCity(String addressCity)
    {
        this.addressCity = addressCity;
    }
    
    /**
     * This is a mutator-method
     * @param String addressZipcode
     */
    public void setAddressZipcode(String addressZipcode)
    {
        this.addressZipcode = addressZipcode;
    }
    
    /**
     * This is an accessor-method.
     * @return the field firstName
     */
    public String getFirstName()
    {
        return firstName;
    }
    
    /**
     * This is an accessor-method.
     * @return the field lastName
     */
    public String getLastName()
    {
        return lastName;
    }
    
    /**
     * 
     */
    public String getFullname()
    {
    	return this.getFirstName() + " " + this.getLastName();
    }
    
    /**
     * This is an accessor-method.
     * @return the field addressStreet
     */
    public String getAddressStreet()
    {
        return addressStreet;
    }
    
    /**
     * This is an accessor-method.
     * @return the field addressCity
     */
    public String getAddressCity()
    {
        return addressCity;
    }
    
    /**
     * This is an accessor-method.
     * @return the field addressZipcode
     */
    public String getAddressZipcode()
    {
        return addressZipcode;
    }   
    

    
    public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
}
